export const storehouseData = {
  name: null,
  domain: null,
  admin: null,
  approval: null,
  effectiveDate: null,
  type: null,
};
export const taskData = {
  name: null,
  desc: null,
  executor: null,
  personLiable: null,
  effectiveDate: null,
  type: null,
};

interface member {
  columns: Array<any>;
  columnDatas: Array<any>;
}
//页码初始化设置
export const pageInit = {
  page: 1, //页码
  rowsPerPage: 15, //每页显示条数
  per_page: 15, //每页显示条数
  rowsNumber: 0, //总条数
};
export const memberData: member = {
  columns: [
    {
      name: 'id',
      required: false,
      label: 'id',
      align: 'left',
      field: 'id',
    },
    {
      name: 'name',
      required: false,
      label: '角色名',
      align: 'left',
      field: 'name',
    },
    {
      name: 'desc',
      align: 'left',
      label: '描述',
      field: 'desc',
    },
    {
      name: 'sort',
      align: 'left',
      label: '排序',
      field: 'sort',
    },
    {
      name: 'status',
      align: 'left',
      label: '状态',
      field: 'status',
    },
    {
      name: 'created_at',
      align: 'left',
      label: '创建时间',
      field: 'created_at',
    },
    {
      name: 'operation',
      label: '操作',
      align: 'center',
    },
  ],
  columnDatas: [
    // {
    //   d: 0,
    //   edit: false,
    //   name: 'John Brown',
    //   jobNumber: '0001',
    //   department: 'Siake Park',
    // },
  ],
};

export const userData: member = {
  columns: [
    {
      name: 'id',
      required: false,
      label: 'id',
      align: 'left',
      field: 'id',
    },
    {
      name: 'username',
      required: false,
      label: '用户名',
      align: 'left',
      field: 'username',
    },
    {
      name: 'nick_name',
      align: 'left',
      label: '昵称',
      field: 'nick_name',
    },
    {
      name: 'portrait',
      align: 'left',
      label: '头像',
      field: 'portrait',
    },
    {
      name: 'role',
      align: 'left',
      label: '角色名称',
      field: 'role',
    },
    {
      name: 'last_login_at',
      align: 'left',
      label: '最后登录时间',
      field: 'last_login_at',
    },
    {
      name: 'last_login_ip',
      align: 'left',
      label: '最后登录IP',
      field: 'last_login_ip',
    },
    {
      name: 'status',
      align: 'left',
      label: '状态',
      field: 'status',
    },
    {
      name: 'created_at',
      align: 'left',
      label: '创建时间',
      field: 'created_at',
    },
    {
      name: 'operation',
      label: '操作',
      align: 'center',
    },
  ],
  columnDatas: [
    // {
    //   d: 0,
    //   edit: false,
    //   name: 'John Brown',
    //   jobNumber: '0001',
    //   department: 'Siake Park',
    // },
  ],
};

export const powerData: member = {
  columns: [
    {
      name: 'name',
      align: 'left',
      label: '菜单名称',
      field: 'name',
    },
    {
      name: 'icon',
      align: 'center',
      label: '图标',
      field: 'icon',
    },
    {
      name: 'menuType',
      align: 'left',
      label: '菜单类型',
      field: 'menuType',
    },
    {
      name: 'api_path',
      align: 'left',
      label: '接口路由',
      field: 'api_path',
    },
    {
      name: 'view_path',
      align: 'left',
      label: '页面路由',
      field: 'view_path',
    },
    {
      name: 'sort',
      align: 'center',
      label: '排序',
      field: 'sort',
    },
    {
      name: 'operation',
      label: '操作',
      align: 'center',
    },
  ],
  columnDatas: [
    // {
    //   d: 0,
    //   edit: false,
    //   name: 'John Brown',
    //   jobNumber: '0001',
    //   department: 'Siake Park',
    // },
  ],
};
